package cosc617_blackteam;


/**
 * @author Laura
 * Command for adding a menu item to the menu
 *
 */
public class CmdAddMenuItem implements I_Command {

	InfoAggregator infoagg;
	MenuItem item;
	
	public CmdAddMenuItem(InfoAggregator infoagg, MenuItem item){
		this.infoagg = infoagg;
		this.item = item;
	}
	@Override
	public Object execute() {
		infoagg.addMenuItem(item);
		return null;
	}

}
